<template>
  <div class="roles">
    <!-- 面包屑导航 -->
    <el-breadcrumb separator="/">
      <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>商品管理</el-breadcrumb-item>
      <el-breadcrumb-item>商品列表</el-breadcrumb-item>
    </el-breadcrumb>
    <el-button type="primary" plain @click='handleAddGoods'>添加商品</el-button>

  </div>
</template>
<script>

export default {
  data () {
    return {

    }
  },
  methods: {
    handleAddGoods () {
      // 跳转到添加商品页面
      this.$router.push({name: 'addgoods'})
    }
  }
}
</script>
